<?php
class login_model extends CI_Model{
	
	public function verify_user($username, $password)
	{
		$q = $this
				->db
				->where('username', $username)
				->where('password', sha1($password))
				->limit(1)
				->get('user');
		if ($q->num_rows > 0) {
			return $q->row();
		} else return false;
	}
}
